home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 July / Macworld CD 17.05.iso / Data / Main.dxr / 00022_go to'er.ls < prev    next >
Encoding:
Text File  |  2000-02-28  |  408 b   |  22 lines

  1. property whichFrame
  2.  
  3. on new me
  4.   return me
  5. end
  6.  
  7. on getPropertyDescriptionList me
  8.   description = [:]
  9.   addProp(description, #whichFrame, [#default: "none", #format: #string, #comment: "The frame-label to go to:"])
  10.   return description
  11. end
  12.  
  13. on getBehaviorDescription me
  14.   return "Goes to the framelabel defined by #whichFrame"
  15. end
  16.  
  17. on mouseUp me
  18.   if whichFrame <> "none" then
  19.     go(whichFrame)
  20.   end if
  21. end
  22.